package cs236369.webserver;

public interface ISession {
	
	/**
	 * sets val to be associated with name throughout the session lifetime. 
	 *  
	 * @param name
	 * @param val
	 */
	public void set(String name, Object val);
	
	/**
	 * gets a pre-saved value or null if name not found.
	 * 
	 * @param name
	 * @return
	 */
	public Object get(String name);
	
	/**
	 * invalidates the session and frees all data associated with it.
	 */
	public void invalidate();

}
